import request from "@/utils/request"

const perfix = "/msg"



// 发送消息
export const sendMessage = (data) => {
  return request({
    url: `${perfix}/send`,
    method: "post",
    data
  })
}


// 获取消息
export const getMagList = (classId) => {
  return request({
    url: `/msg/msgList?classId=${classId}`,
    method: 'get'
  })
}


// 获取自己发的通知
export const getSendMsg = (id) => {
  return request({
    url: `/msg/meApp?id=${id}`,
    method: 'get'
  })
}